from config import get_token
import requests

def 获取素材列表(advertiser_id,token):
    url = "https://ad.e.kuaishou.com/rest/openapi/v1/file/ad/video/list"
    headers = {
        "Access-Token": token,
        "Content-Type": "application/json",
    }
    data = {
        "advertiser_id": advertiser_id,
    }
    response = requests.post(url, headers=headers, json=data)
    return response.json()

if __name__ == '__main__':
    token = get_token(17750615460)
    素材list = 获取素材列表(advertiser_id=16211355,token=token)
    print (素材list)